<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="display" uri="/WEB-INF/tags/displaytag-12.tld"%>
<%@page import="com.opensymphony.module.sitemesh.Page"%>
<html>
<head>
<meta name="tab" content="students" />
<meta name="leftbar-link" content="email-list"/>
<meta name="decorator" content="DefaultLayout"/>
<link href="<s:url value="/webwork/jscalendar/calendar-blue.css" />" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<script>

</script>
<span id="pageHeading">Batch Details<hr/></span>

<s:form name="studentForm" id="studentForm" action="/showAddBatchForm.action" method="post">
<table>
<tr>
	<td><b>Batch Id</b></td>
	<td>${batch.id}</td>
</tr>

<tr>
	<td>Start Date</td>
	<td>${batch.startDateStr}</td>
</tr>

<tr>
	<td>End Date</td>
	<td>${batch.endDateStr}</td>
</tr>

<tr>
	<td>CI Name</td>
	<td>${batch.ciName}</td>
</tr>
<tr>
	<td>Active</td>
	<td>${batch.activeFlag}</td>
</tr>

<tr>
	<td colspan="4" align="center">
	<a class="orange" href="<%=request.getContextPath()%>/editBatch.action?batchId=${batch.id}">Edit</a>	
</td>
</tr>

</table>
Student Details
<table>
  <display:table name="students" id="studentBatch" class="dataTable" requestURI="/searchStudent.action"
      cellspacing="0"  sort="list" export="true" 
      decorator="org.displaytag.decorator.TotalTableDecorator" >
      <display:column title="Student Id" class="#externalLinks">
        <a href="<%=request.getContextPath()%>/viewStudent.action?studentId=${studentBatch.student.id}">
         ${student.id}
        </a> 
      </display:column>
      <display:column title="First Name" property="student.firstName" sortable="true"/>
      <display:column title="Last Name" property="student.lastName" sortable="true"/>
      <display:column title="Fathers Name" property="student.fathersName" sortable="true"/>
      <display:column title="Phone Name" property="student.contactNum1" sortable="true"/>
</display:table>
</table>

</s:form>
</body>
</html>
